from common.basepage import BasePage
class Addblock(BasePage):
    def __init__(self,driver=None):
        super().__init__(driver)
        self.addBlockLoc = 'xpath=//*[@id="mainNavbar"]/div/ul[3]/li[3]/a'
        self.allEntriesLoc = 'id=allEntries'
        self.entryBlockLoc='id=entryBlock'
        self.submitLoc = 'id=submit'
    def click_AddUser(self):
        self.click_button(self.addBlockLoc)
    def select_Allentries(self,value='crm'):
        self.select_target_Value(self.allEntriesLoc,value)
    def select_entryBlockLoc(self, value='order'):
        self.select_target_Value(self.entryBlockLoc, value)
    def click_submit(self):
        self.click_button(self.submitLoc)